// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 更新图片信息 更新图片的基本信息 PUT /api/review/${param0} */
export async function updatePictureUsingPut1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updatePictureUsingPUT1Params,
  body: API.PictureUpdateDTO,
  options?: { [key: string]: any }
) {
  const { pictureId: param0, ...queryParams } = params
  return request<API.Result>(`/api/review/${param0}`, {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    params: { ...queryParams },
    data: body,
    ...(options || {}),
  })
}

/** 删除单张图片 删除单张图片(逻辑删除) DELETE /api/review/${param0} */
export async function deletePictureUsingDelete1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deletePictureUsingDELETE1Params,
  options?: { [key: string]: any }
) {
  const { pictureId: param0, ...queryParams } = params
  return request<API.Result>(`/api/review/${param0}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 审核通过单张图片 将单张图片状态修改为审核通过 POST /api/review/approve/${param0} */
export async function approvePictureUsingPost1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.approvePictureUsingPOST1Params,
  options?: { [key: string]: any }
) {
  const { pictureId: param0, ...queryParams } = params
  return request<API.Result>(`/api/review/approve/${param0}`, {
    method: 'POST',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  })
}

/** 批量删除图片 批量删除多张图片(逻辑删除) DELETE /api/review/batch */
export async function batchDeletePicturesUsingDelete1(
  body: API.PictureBatchDeleteDTO,
  options?: { [key: string]: any }
) {
  return request<API.Result>('/api/review/batch', {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 批量审核通过图片 批量将图片状态修改为审核通过 POST /api/review/batch-approve */
export async function batchApprovePicturesUsingPost1(
  body: API.PictureBatchApproveDTO,
  options?: { [key: string]: any }
) {
  return request<API.Result>('/api/review/batch-approve', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 批量拒绝图片 批量将图片状态修改为审核拒绝 POST /api/review/batch-reject */
export async function batchRejectPicturesUsingPost1(
  body: API.PictureBatchRejectDTO,
  options?: { [key: string]: any }
) {
  return request<API.Result>('/api/review/batch-reject', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 获取待审核图片列表 支持多条件筛选和分页查询 GET /api/review/list */
export async function getPictureListUsingGet1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPictureListUsingGET1Params,
  options?: { [key: string]: any }
) {
  return request<API.Result>('/api/review/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 拒绝单张图片 将单张图片状态修改为审核拒绝 POST /api/review/reject/${param0} */
export async function rejectPictureUsingPost1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.rejectPictureUsingPOST1Params,
  body: API.PictureRejectDTO,
  options?: { [key: string]: any }
) {
  const { pictureId: param0, ...queryParams } = params
  return request<API.Result>(`/api/review/reject/${param0}`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: { ...queryParams },
    data: body,
    ...(options || {}),
  })
}

/** 获取图片统计数据 获取待审核数量、今日已审核数量、违规数量、总图片数等统计信息 GET /api/review/statistics */
export async function getStatisticsUsingGet1(options?: { [key: string]: any }) {
  return request<API.Result>('/api/review/statistics', {
    method: 'GET',
    ...(options || {}),
  })
}
